package com.bh.kysys.service;

import com.bh.kysys.domain.JcSysUserOrganization;
import com.bh.kysys.vo.JcSysUserOrganizationVo;

import java.util.List;

/**
 * organizationService接口
 * 
 * @author slx
 * @date 2023-03-11
 */
public interface IJcSysUserOrganizationService
{
    /**
     * 查询organization
     * 
     * @param userId organization主键
     * @return organization
     */
    public List<JcSysUserOrganization> selectJcSysUserOrganizationByUserId(Long userId);

    /**
     * 查询organization
     * @param orgId
     * @return
     */
    public List<JcSysUserOrganization> selectJcSysUserOrganizationByOrgId(Long orgId);

    /**
     * 查询organization列表
     *
     * @param jcSysUserOrganization organization
     * @return organization集合
     */
    public List<JcSysUserOrganization> selectJcSysUserOrganizationList(JcSysUserOrganization jcSysUserOrganization);


    /**
     *
     * @param userOrganizations
     * @return
     */
    public int saveBatch(List<JcSysUserOrganization> userOrganizations);

    /**
     *
     * @param userOrganizations
     * @return
     */
    public int insert(JcSysUserOrganization userOrganization);

    /**
     * 
     * @param organization
     * @return
     */
    public int batchAddOrg(JcSysUserOrganizationVo organization);

    /**
     *
     * @param organization
     * @return
     */
    public int deleteUserOrg(JcSysUserOrganization organization);
}
